from models.Users import *
from models.Authentication import *
import logging
def CheckUserCreated(fn):
    def check(*args):
        logging.info(args)
        user = get_current_user()
        if not user:
            user = D5User(google_user=users.get_current_user())
            user.put()
        return fn(*args)
    return check
